package com.system.entity;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.io.Serializable;

@CrossOrigin
@Component
public class CourseInformation implements Serializable {
    private Integer courseId;

    private String semester;

    private Integer coursePlace;

    private String courseTime;

    private Integer courseCapacity;

    private String week;

    private Integer courseCoding;

    private String devided;

    private Integer daytime;

    private String teachgrade;

    public String getTeachgrade() {
        return teachgrade;
    }

    public void setTeachgrade(String teachgrade) {
        this.teachgrade = teachgrade;
    }

    public CourseInformation(Integer courseId, String semester, Integer coursePlace, String courseTime, Integer courseCapacity, String week, Integer courseCoding, String devided, Integer daytime,String teachgrade) {
        this.courseId = courseId;
        this.semester = semester;
        this.coursePlace = coursePlace;
        this.courseTime = courseTime;
        this.courseCapacity = courseCapacity;
        this.week = week;
        this.courseCoding = courseCoding;
        this.devided = devided;
        this.daytime = daytime;
        this.teachgrade=teachgrade;
    }

    public CourseInformation() {
        super();
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester == null ? null : semester.trim();
    }

    public Integer getCoursePlace() {
        return coursePlace;
    }

    public void setCoursePlace(Integer coursePlace) {
        this.coursePlace = coursePlace;
    }

    public String getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(String courseTime) {
        this.courseTime = courseTime == null ? null : courseTime.trim();
    }

    public Integer getCourseCapacity() {
        return courseCapacity;
    }

    public void setCourseCapacity(Integer courseCapacity) {
        this.courseCapacity = courseCapacity;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public Integer getCourseCoding() {
        return courseCoding;
    }

    public void setCourseCoding(Integer courseCoding) {
        this.courseCoding = courseCoding;
    }

    public String getDevided() {
        return devided;
    }

    public void setDevided(String devided) {
        this.devided = devided == null ? null : devided.trim();
    }

    public Integer getDaytime() {
        return daytime;
    }

    public void setDaytime(Integer daytime) {
        this.daytime = daytime;
    }
}
